class UserTable{

  String nickname;
  int uid;
  int vip;
  int price;
  String icon;
  String country;
  String birth;
  String code;
  String times;
  String uptime;

  Map<String, dynamic> toMap() {
    var map = new Map<String, dynamic>();
    map['nickname'] = nickname;
    map['birth'] = birth;
    map['uid'] = uid;
    map['vip'] = vip;
    map['uptime'] = uptime;
    map['country'] = country;
    map['price'] = price;
    map['code'] = code;
    map['icon'] = icon;
    map['times'] = times;
    return map;
  }

  static UserTable fromMap(Map<String, dynamic> map) {
    UserTable user = new UserTable();
    user.nickname = map['nickname'];
    user.uid = map['uid'];
    user.birth = map['birth'];
    user.vip = map['vip'];
    user.code = map['code'];
    user.uptime = map['uptime'];
    user.price = map['price'];
    user.country = map['country'];
    user.icon = map['icon'];
    user.times = map['times'];
    return user;
  }
  static List<UserTable> fromMapList(dynamic mapList) {
    List<UserTable> list = new List(mapList.length);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }
}